import { Component } from '@angular/core';
import {ConfigService} from '../services/config.service';
import {Router} from '@angular/router';

@Component({
  selector: 'app-tab1',
  templateUrl: 'tab1.page.html',
  styleUrls: ['tab1.page.scss']
})
export class Tab1Page {

  constructor(public config:ConfigService
  ,private router:Router) {}




  //前往上屏详情页
  goToDetail(sku:string){

    this.router.navigate(['/productdetail',{'sku':sku}])

  }

}
